//导入request.js
import request from '@/utils/request.js'


export const searchByNameService = (params)=>{
    return request.get('/user/search',{params:params})
}

export const getUserInfoService = (params)=>{
    return request.get('/user',{params:params})
}

export const addUserService = (userModel)=>{
    return request.post('/user',userModel)
}

export const updateUserService = (userModel)=>{
    return request.put('/user',userModel)
}

export const deleteUserService = (id)=>{
    return request.delete('/user?id='+id)
}